package tt.dz.service.imp.middleware.vo.statechange;

import tt.dz.service.imp.middleware.vo.MessageField;

/**
 * Created by luoyp on 2016/6/24.
 */
public class StateChangeBody
{
	@MessageField(order = 1, length = 1)
	private String stateType;

	public static final String State_Available = "01";
	public static final String State_Reserved = "02";
	public static final String State_Charging = "03";
	public static final String State_ChargingStopped = "04";
	public static final String State_TapCard = "05";
	public static final String State_Down = "06";
	public static final String State_Of_Parking = "07";

	public boolean isStateTypeValid()
	{
		return State_Of_Parking.equals(stateType) || State_Down.equals(stateType) || State_TapCard.equals(stateType) || State_ChargingStopped.equals(stateType) || State_Charging.equals(stateType) || State_Reserved
				.equals(stateType) || State_Available.equals(stateType);
	}

	public String getStateType()
	{
		return stateType;
	}

	public void setStateType(String stateType)
	{
		this.stateType = stateType;
	}
}
